#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <fusionnotify.h>
#include "mpdclient.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

protected:
    void closeEvent(QCloseEvent *event);

public slots:
    void connectionBroken();
    void connected();
    void tick();
    void on_nextButton_clicked();
    void on_prevButton_clicked();
    void on_playButton_clicked();
    void on_stopButton_clicked();

private:
    Ui::MainWindow *ui;
    MPDClient *mpd;
    FusionNotify Notifier;
    bool playing;
    void setLabels(MPDClient::song s);
    void updateUi(MPDClient::status *s=0);
};

#endif // MAINWINDOW_H
